<template>
  <h1>这是头部组件</h1>
  <h2>{{ store.state.message }}</h2>
  <button @click="store.setMessage('11111')">修改</button>
</template>

<script>
export default {
  name: "Header",
  inject: ['store']
}
</script>

<style scoped>

</style>